import request from '@/utils/request'

// 查询禁忌症基础列表
export function listBasecontraindication(query) {
  return request({
    url: '/basic/basecontraindication/list',
    method: 'get',
    params: query
  })
}

// 查询禁忌症基础详细
export function getBasecontraindication(id) {
  return request({
    url: '/basic/basecontraindication/' + id,
    method: 'get'
  })
}

// 新增禁忌症基础
export function addBasecontraindication(data) {
  return request({
    url: '/basic/basecontraindication',
    method: 'post',
    data: data
  })
}

// 修改禁忌症基础
export function updateBasecontraindication(data) {
  return request({
    url: '/basic/basecontraindication',
    method: 'put',
    data: data
  })
}

// 删除禁忌症基础
export function delBasecontraindication(id) {
  return request({
    url: '/basic/basecontraindication/' + id,
    method: 'delete'
  })
}
